#pragma once
#include "afxcmn.h"


// CNewTableDlg dialog

class CNewTableDlg : public CDialog
{
	DECLARE_DYNAMIC(CNewTableDlg)

public:
	CNewTableDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CNewTableDlg();

// Dialog Data
	enum { IDD = IDD_NEW_TABLE };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnNMRClickTreeElement(NMHDR *pNMHDR, LRESULT *pResult);
	CTreeCtrl m_TreeElement;
private:
	HTREEITEM m_hItemSelected;
public:
	afx_msg void OnInsertanewitemInsertatsamelevel();
	afx_msg void OnInsertanewitemInsertasachild();
	afx_msg void OnElementmanuputnationDeletethisitem();
	afx_msg void OnElementmanuputnationModifythisitem();
	CString m_szTableName;
	//DWORD_PTR m_pNewTable;
protected:
	virtual void OnOK();
};
